CC=g++#定义变量
.PHONY:all
all:tcpserver tcpclient
tcpserver:tcpServer.cc
	$(CC) -o $@ $^ -std=c++11 -lpthread #$(cc)表示提取变量cc的内容
tcpclient:tcpClient.cc
	$(CC) -o $@ $^ -std=c++11 -lpthread
.PHONY:clean
clean:
	rm -f tcpserver tcpclient